home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / CUGUK / PROG_TOO / C013.ZIP / ENV.C < prev    next >
Text File  |  1990-01-19  |  1KB  |  42 lines

  1. /********************************************************************
  2.  * C Users Group (U.K) C Source Code Library File CUGLIB.013        *
  3.  * Inquiries to: M. Houston, 36 Whetstone Clo. Farquhar Rd.         *
  4.  * Edgbaston, Birmingham B15 2QN ENGLAND                *
  5.  ********************************************************************
  6.  * File name: env.c
  7.  * Program name:env 
  8.  * Source of file: Ron Wellstead
  9.  * Purpose: An MS-DOS copy of the UNIX utility of the same name.
  10.  * Changes: <who what when & why major changes have been made>      
  11.  ********************************************************************/
  12.  
  13. /*
  14.  *
  15.  *    @(#) env.c 1.2 87/07/27 
  16.  *
  17.  *    UNIX style env utility for dos
  18.  *
  19.  *    copyright (c) 1987 Ron Wellsted.
  20.  *    This software is provided on the understanding that it is
  21.  *    NOT to be used for commercial gain. It may be freely distributed
  22.  *    in source or object form among amateur and hobby computer users ONLY!
  23.  *
  24.  *    copies the inherented environment of a child process to stdout
  25.  *    usage: env
  26.  *    written for Microsoft C
  27.  */
  28. #include    <stdio.h>
  29.  
  30. char what[]="@(#)env.c VR 1.0.0 15 Jul 1987";
  31.  
  32. main(argc, argv, envp)
  33. int argc;
  34. char **argv,**envp;
  35. {
  36.  
  37.     register char **p;
  38.  
  39.     for (p=envp;*p;p++) printf("%s\n", *p);
  40.     exit(0);
  41. }
  42.